//
//  ZDBFeedbackTableViewCell.m
//  ZDB
//
//  Created by Kk on 2020/3/30.
//  Copyright © 2020 ZDB. All rights reserved.
//

#import "ZDBFeedbackTableViewCell.h"

@implementation ZDBFeedbackTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    KViewRadius(_userIcon, _userIcon.height/2);
     self.selectionStyle = UITableViewCellAccessoryNone;
    self.backgroundColor =  VIEWBGCOLOR;
}
- (void)setModel:(FeedbackModel *)model
{
    NSDictionary * userDic = [[DJLoginHelper sharedInstance] cj_UserDicc];
    _userName.text = userDic[@"userName"];
    [self.userIcon sd_setImageWithURL:[NSURL URLWithString:[userDic jsonString:@"headImage"]] placeholderImage:PlaceHolderImage];
    _time.text =model.createTime;
    _contentLab.text = model.content;
    if (model.feedbackImageList.count>0) {
        _lookImgBtn.hidden = NO;
    }else
    {
        _lookImgBtn.hidden = YES;
    }
   
      
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
